#ifndef ERRORTABLE_H
#define ERRORTABLE_H

#include <QTableView>

class ErrorTable : public QTableView
{
    Q_OBJECT
public:
    explicit ErrorTable(QWidget *parent = 0);
    virtual void setModel(QAbstractItemModel *model);
    virtual QSize sizeHint() const;
protected:
    virtual void resizeEvent(QResizeEvent *event);
    //virtual void showEvent(QShowEvent *);
    virtual void hideEvent(QHideEvent *);
public slots:
    virtual void currentChanged(const QModelIndex & current, const QModelIndex & previous);
signals:
    void activated(int);
private:
    int _height;
};

#endif // ERRORTABLE_H
